﻿using Sail.Environment;
using Sail.Localization;

namespace Sail.Commands
{
    internal class CommandHostEnvironment : HostEnvironment
    {
        public CommandHostEnvironment()
        {
            T = NullLocalizer.Instance;
        }

        public Localizer T { get; set; }

        public override void RestartAppDomain()
        {
            throw new SailCommandHostRetryException(T("A change of configuration requires the session to be restarted."));
        }
    }
}
